package com.zhouchao.persistence.session;

import com.zhouchao.persistence.pojo.Configuration;

/**
 * @Author: zhouchao
 * @Date: 2021/05/03 20:41
 * @Description:
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
